package com.example.security.provider;

import com.example.security.domain.ShiroUserDetail;
import org.apache.shiro.authc.AuthenticationException;

/**
 * @Author: lex
 * @Date: 2019/2/1
 */
public interface ShiroUserDetailService {

    ShiroUserDetail getByMobile(String mobile) throws AuthenticationException;

    ShiroUserDetail getByUserName(String username) throws AuthenticationException;

    ShiroUserDetail getBySocialProvider(String itemId, String socialProviderId) throws AuthenticationException;
}
